FROM golang:alpine
MAINTAINER lstink
ENV GOPROXY https://goproxy.cn
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod tidy
COPY . .
RUN go build -v -o /usr/local/bin/app
EXPOSE 6007
CMD ["app"]